package JavaBaseTest;

import java.awt.image.ShortLookupTable;

/**
 * @program: java_learning
 * @description
 * @author: 辛旭初
 * @create: 2021-11-07 23:29
 **/

public class Test1107 {


    public static void main(String[] args) {

        //除号
        int num1 = 12;
        int num2 = 5;
        System.out.println(num1/num2);

        int result = num1/num2*num2;
        System.out.println(result);

        int a = 11;
        int b = a++;
        System.out.println(b);

        int a1 = 10;
        int b1 = ++a1;
        System.out.println(b1);

        short s1 = 10;
        //s1=s1+1;//编译失败，需要强转一下
        s1++;//自增不会改变原有变量变量类型
    }
}
